import request from '@/utils/request'

// 查询学生视频列表
export function listS_video(query) {
  return request({
    url: '/course/s_video/list',
    method: 'get',
    params: query
  })
}

// 查询学生视频详细
export function getS_video(id) {
  return request({
    url: '/course/s_video/' + id,
    method: 'get'
  })
}

// 新增学生视频
export function addS_video(data) {
  return request({
    url: '/course/s_video',
    method: 'post',
    data: data
  })
}

// 修改学生视频
export function updateS_video(data) {
  return request({
    url: '/course/s_video',
    method: 'put',
    data: data
  })
}

// 删除学生视频
export function delS_video(id) {
  return request({
    url: '/course/s_video/' + id,
    method: 'delete'
  })
}
